package com.example.publishDemo.Service;

import com.example.publishDemo.Model.Article;
import com.example.publishDemo.Model.ArticleReport;
import com.example.publishDemo.Model.User;

import java.util.List;

public interface AdminService {

    int totalUser();

    int totalArticle();

    List<Article> articleRange(int start, int end);

    int delArticleForId(int a_id);

    List<User> UserRange(int start, int end);

    int delUserForId(int u_id);

    int totalReport();

    List<ArticleReport> ReportRange(int start, int end);

    User getUserById(int u_id);

    Article getArticleForId(int a_id);

    int completeProcess(int r_id);

    int totalComment();

    int totalView();

    List<Integer> getArticleTop5Views();

    List<String> getArticleTop5Title();

    List<String> getAllTagName();

    int findArticleForTagName(String tagName);

    boolean isRecommend(int a_id);

    int unRecommend(int a_id);

    int Recommend(int a_id);

    boolean isAdmin(int u_id);

    int unAdmin(int u_id);

    int Admin(int u_id);
}
